package com.aptemo.webetek.client.events;

import com.aptemo.webetek.shared.PickBean;
import com.google.gwt.event.shared.GwtEvent;

public class PickClickEvent
		extends GwtEvent<PickClickHandler>
{

	public static final GwtEvent.Type<PickClickHandler>	TYPE	= new GwtEvent.Type<PickClickHandler>();

	private PickBean									pick;

	public PickClickEvent(PickBean pick)
	{
		this.pick = pick;
	}

	public PickBean getPick()
	{
		return pick;
	}

	@Override
	protected void dispatch(PickClickHandler handler)
	{
		handler.onPickClicked(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<PickClickHandler> getAssociatedType()
	{
		return TYPE;
	}

}
